package runnable_functions;

import java.io.IOException;
import java.util.concurrent.CountDownLatch;

import db.DB;
import gui.Main;

public class ConnectDB implements Runnable{

	private CountDownLatch startSignal;
	
	public ConnectDB(CountDownLatch startSignal){
		this.startSignal = startSignal;
	}
	@Override
	public void run() {
		try {
			Main.db = new DB();
		} catch (IOException e) {
			Main.guiInt.notifyGeneralError(e.getMessage());
		}
		finally{
			startSignal.countDown();
		}
		
	}
	
	

}
